<!DOCTYPE html>
{% load static %}
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="{% url 'login' %}" method="post" novalidate>
    {% csrf_token %}
    <p>用户名: <input type="text" name="name" id="id_name"></p>
    <span style="color: red">{{ form.password.errors.0 }}</span>
    <p>密码: <input type="password" name="password" id="id_password"></p>
    <input type="submit" value="提交">
</form>

</body>
<script>

</script>
</html>